// router/index.js
import { createRouter, createWebHistory } from 'vue-router';

import store from "@/store";

const routes = [
    {
        path:"/:regionId",
        name: "home",
        component: () => import("@/views/RegionList.vue"),
        meta:{
            title:"首页"
        }
    },
    {
        path:"/region/:regionId",
        name: "region",
        component: () => import("@/views/RegionList.vue"),
        meta:{
            title:"首页"
        }
    },
    {
        path:"/play",
        name: "player",
        component: () => import("@/views/VideoPlayer.vue"),
        meta:{
            title:"视频播放"
        }
    },
    {
        path: "/hkplay",
        name: "hkplayer",
        component: () => import("@/views/HkVideoPlayer.vue"),
        meta:{
            title:"视频播放"
        }
    },
    {
        path: "/flvplay",
        name: "flvplayer",
        component: () => import("@/views/FlvVideoPlayer.vue"),
        meta: {
            title: "视频播放"
        }
    }
];


const router = createRouter({
    history:createWebHistory(import.meta.env.BASE_URL),
    routes: routes
});


export default router;
